package com.yunpuvip.sachet.biz.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 会员用户
 * </p>
 *
 * @author wushaohong
 * @since 2019-08-10
 */
@TableName("mb_player")
@Data
public class Player implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 会员号
     */
    @TableField("user_no")
    private String userNo;

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 头像
     */
    @TableField("userhead")
    private String userhead;

    /**
     * 公司
     */
    @TableField("company")
    private String company;

    /**
     * 地址
     */
    @TableField("address")
    private String address;

    /**
     * 钥匙
     */
    @TableField("token")
    private String token;

    /**
     * 余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 1 - 有效；0 - 无效；2-冻结
     */
    @TableField("status")
    private Integer status;

    /**
     * 部门id
     */
    @TableField("deptid")
    private Integer deptid;

    /**
     * 推荐人id
     */
    @TableField("introducer_id")
    private Integer introducerId;

    /**
     * 最后登录时间
     */
    @TableField("last_login")
    private Date lastLogin;

    /**
     * 登录状态 0：下线 1：在线
     */
    @TableField("login_status")
    private Integer loginStatus;

    /**
     * 登录过期时间
     */
    @TableField("login_expire_time")
    private Date loginExpireTime;

    /**
     * 新增时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private boolean isNewUser=false;

    /**
     * 记录状态
     */
    @TableField("record_status")
    private Integer recordStatus;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUserhead() {
        return userhead;
    }

    public void setUserhead(String userhead) {
        this.userhead = userhead;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Integer getIntroducerId() {
        return introducerId;
    }

    public void setIntroducerId(Integer introducerId) {
        this.introducerId = introducerId;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public Integer getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(Integer loginStatus) {
        this.loginStatus = loginStatus;
    }

    public Date getLoginExpireTime() {
        return loginExpireTime;
    }

    public void setLoginExpireTime(Date loginExpireTime) {
        this.loginExpireTime = loginExpireTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(Integer recordStatus) {
        this.recordStatus = recordStatus;
    }

    @Override
    public String toString() {
        return "Player{" +
        "id=" + id +
        ", phone=" + phone +
        ", userNo=" + userNo +
        ", nickname=" + nickname +
        ", userhead=" + userhead +
        ", company=" + company +
        ", address=" + address +
        ", token=" + token +
        ", balance=" + balance +
        ", status=" + status +
        ", deptid=" + deptid +
        ", introducerId=" + introducerId +
        ", lastLogin=" + lastLogin +
        ", loginStatus=" + loginStatus +
        ", loginExpireTime=" + loginExpireTime +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", recordStatus=" + recordStatus +
        "}";
    }
}
